<{include file="section/admin/admin_header.tpl"}>
<body>
<{include file="section/admin/admin_header_login_bar.tpl"}>
<div id="contentA" class="clear" style="width:1300px;">
	<!--leftsidebar sr-->
	<{include file="section/admin/admin_left_sidebar.tpl"}>
    <!--/leftsidebar end-->
    <div class="rightCont">
		<!--path st-->
        <div class="path">您的位置：<a href="/">首页</a>&gt;<a href="/complaint">投诉管理</a>&gt; 投诉详情</div>
        <!--/path end-->

		<h2 class="title01"><span>投诉处理</span></h2>
        <div class="line1"></div>
		<div class="boxform">
			<ul class="clear">
            <li class="i1"> 用户名称：</li>
			<li><span class="in"> <{$data.uname}></span></li>
			</ul>
            <ul class="clear">
            <li class="i1"> 标题：</li>
			<li><span class="in"> <{$data.title}></span></li>
			</ul>
            <ul class="clear" >
            <li class="i1"> 内容：</li>
            <li><span class="in"> <{$data.content}></span></li>
            </ul>
            <ul class="clear" >
            <li class="i1"> 图片：</li>
			<li><{foreach from=$data.img item=img}>
				<p><img src="<{$img}>" /></p>
			<{/foreach}></li>
            </ul>
			<ul class="clear">
            <li class="i1"> 当前状态：</li>
            <li><span class="in"><{$data.sname}></span></li>
            </ul>
						
			<div class="line margin25"></div>
            <ul class="clear">
			<li>&nbsp;</li>
			<li>订单详情 :</li>
            </ul>

			<{php}>
			      $url = "/order/detail/{$this->_tpl_vars['order_id']}";
			      echo Request::factory($url)->execute()->body();
			<{/php}>

			<form action="/complaint/handle" method="post" name="frm" id="frm">
				<input type='hidden' name="id" id="id" value="<{$data.id}>" />
				<input type='hidden' name="status" id="status" value="" />

			<div class="line margin25"></div>

			<ul class="clear">
			<li>&nbsp;</li>
            </ul>

			<ul class="clear">
            <li class="i1">操作: </li>
			</ul>
			
			<ul class="clear">
			<li class="il"><span style="width:150px;float:left;">  <input type='radio' name="uch_action"  value="2" >  客服已经介入 </span> <br/>
			<span style="width:150px;float:left;">  <input type='radio' name="uch_action"  value="3" >  已解决-先行赔付 </span> <br/>
			<span style="width:150px;float:left;">  <input type='radio' name="uch_action"  value="4" >  已解决-线下调节 </span> <br/>
			</li></ul>
			<ul class="clear">
			<li class="il">描述:</li><br/>
			<li><span style="height:100px;"><textarea id="content" name="content" cols="45" rows="10"></textarea></span></li>
			</li>
			</ul>
			<ul class="clear">
			<li> &nbsp;</li>
			<li>
           	<input type="button" class="btn04" value="提交" name="sub1" onclick="update_info(1);"/>　<input type="button" name="" class="btn04" value="取消" onclick="reset();"/>
            </li>
			</ul>
			</form>
        </div>
        
    </div>
</div>
<script>
function update_info(num)
{
	var frm		= document.getElementById('frm');
	var datas	= document.getElementsByTagName('input');
	var flag	= false;
	var	verify	= '';
	for(var i=0; i< datas.length; i++)
	{
		if(datas[i].checked)
		{		
			flag = flag || true;
			verify	= datas[i].value ;
		}
	}
	document.getElementById('status').value	= verify;
	if(flag)
		frm.submit();
	else
		alert('请选择处理状态');
}
</script>
</body>
</html>
